                                      <div class="adv-table">
                                          <table  class="display table table-bordered table-striped" id="MyTaskTable-1">
                                             
		                                      <tbody>
		                                       <foreach name="assign" item="v" key="k">
		                                             <tr>
		                                               <th>
                                                   <!--      <a href="{:U('Project/task',array('tid'=>$v['tid'],'pid'=>$v['pid']))}">
                                                          <span class="btn btn-info btn-xs">
                                                            <i class="icon-search mr0"></i>
                                                          </span>
                                                        </a> -->
                                                        <span class="searchBtnXs">{$v.name}</span>
                                                      </th>
		                                                   <if condition="$sid neq 2 && $sid neq 4">
		                                                  <th>{$v.assigname}</th>
		                                                 	<else/>
		                                                  <th>{$use[$v['assign']]}</th>
		                                                  </if>
		                                                  <th>{$v.cfrom}</th>
		                                                  <th>{$task_status['type'][$v['type']]}</th>
		                                                      <?php $time = strtotime($v['t_stop']);
		                                                      		$time1 = time();
		                                                      ?>
		                                                        <if condition="$time1 gt $time && $v['status'] neq 4 && $v['status'] neq 5">
		                                                        <th><span style="color:red;">超时</span></th>
		                                                        <else/>
		                                                  <th>{$task_status['status'][$v['status']]}</th>
		                                                  </if>
		                                                  <th>{$task_status['priority'][$v['priority']]}</th>
		                                              <!--     <th>{$task_status['severity'][$v['severity']]}</th> -->
		                                                  <th>{$v.add_time|date='Y-m-d H:i',###}</th>
		                                                  <th>{$v.t_stop}</th>
		                                                  <th>{$v.pname}</th>
		                                                  <th>
		                                                		<!--     主要针对编制报告相关任务的判断 -->
	                                                         <if condition="$sid neq 2 && $sid neq 4 && $sid neq 1 && $v['type'] eq 3">
	                                                                 <if condition="$v['status'] eq 4">
	                                                         			    <a href="/Family/{$v.link2}?id={$v.link1}&tid={$v.tid}" class="btn btn-submit btn-xs">已完成</a>
	                                                         		    <elseif condition="$v['status'] eq 5"/>
	                                                         		        <a href="/Family/{$v.link2}?id={$v.link1}" class="btn btn-danger btn-xs">已驳回</a>
	                                                         		     <else/>
	                                                         		        <a href="/Family/{$v.link2}?id={$v.link1}&tid={$v.tid}" class="btn btn-submit btn-xs">前往审核</a>
	                                                         		 </if>
	                                                          </if>
	                                                          
	                                                    		<!-- 主要针对支配给我的任务时的判断-->
	                                                           <if condition="$sid eq 1 && $v['type'] neq 3">
	                                                                 <if condition="$v['status'] eq 2">
	                                                         			    <a href="/Project/task?tid={$v.tid}" class="btn btn-submit btn-xs">上传成果</a>
	                                                         		    <elseif condition="$v['status'] eq 7"/>
	                                                         		        <a href="/Project/task?tid={$v.tid}" class="btn btn-danger btn-xs">已上传(审核中)</a>
	                                                         		    <elseif condition="$v['status'] eq 5"/>
	                                                         		        <a href="/Project/task?tid={$v.tid}" class="btn btn-danger btn-xs">已上传(被驳回)</a>
	                                                         		 </if>
	                                                          </if>
	                                                          <!--针对待我审合适判断-->
	                                                           <if condition="$sid eq 3 && $v['type'] neq 3 && $v['status'] eq 8">
	                                                           		 <a href="/Project/achie?tid={$v.link1}&dtid={$v['tid']}" class="btn btn-danger btn-xs">成果审核</a>
	                                                           </if>
	                                                           <!-- 已完成任务时相应判断 -->
	                                                           <if condition="$sid eq 5 && $v['type'] neq 3 && $v['status'] eq 4">
	                                                           		<if condition="$v['link'] eq ''">
	                                                           		 	<a href="/Project/task?tid={$v.tid}" class="btn btn-danger btn-xs">已完成</a>
	                                                           		 	<else/>
	                                                           		 	<a href="/Project/achie?tid={$v.link1}&dtid={$v['tid']}" class="btn btn-danger btn-xs">已完成</a>
	                                                           		</if>
	                                                           </if> 
	                                                  <!--  任务完成时显示查看任务按钮 -->
	                                                           <if condition="$sid eq 2 && $v['status'] eq 4">
	                                                           		 <a href="/Project/task?tid={$v.tid}" class="btn btn-danger btn-xs">查看</a>
	                                                           </if>
                                                        </th>
		                                              </tr>
		                                        </foreach>
                                              </tbody> 
                                          </table>
                                      </div>
      <script src="__PUBLIC__/js/jquery-migrate-1.2.1.min.js"></script>
      <script class="include" type="text/javascript" src="__PUBLIC__/js/jquery.dcjqaccordion.2.7.js"></script>
      <script type="text/javascript" language="javascript" src="__PUBLIC__/assets/advanced-datatable/media/js/jquery.dataTables.js"></script>
      <script type="text/javascript" src="__PUBLIC__/assets/data-tables/DT_bootstrap.js"></script>
      <script src="__PUBLIC__/js/dynamic_table_init.js"></script>
      <script src="__PUBLIC__/js/respond.min.js" ></script>
